package togetherOne.dao;

import java.util.ArrayList;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import togetherOne.vo.MemberVo;

public class MemberDaoImpl extends SqlMapClientDaoSupport implements MemberDao {
	public void insertMember (MemberVo mem){
		getSqlMapClientTemplate().insert("member.insertMember", mem);
	}
	public ArrayList<MemberVo> getMember(MemberVo mem){
		return (ArrayList<MemberVo>) getSqlMapClientTemplate().queryForList("member.getMember", mem);
	}
	public void updateMemberByEmail(MemberVo mem){
		getSqlMapClientTemplate().update("updateMemberByEmail", mem);
	}
	public void deleteMemberByEmail(String email){
		getSqlMapClientTemplate().delete("deleteMemberByEmail",email);
	}
}
